#ifndef NAMEGENERATOR_H
#define NAMEGENERATOR_H

#include "Framework/Prerequisites.h"

#include <sstream>

namespace tyro
{
	namespace Framework
	{
		// Utility class to generate a sequentially numbered series of names
		class NameGenerator
		{
		public:

			NameGenerator(const String& prefix) : prefix(prefix), next(0) {}

			String Generate(void)
			{
				std::ostringstream ss;
				ss << prefix << next++;
				return ss.str();
			}
		protected:

			String prefix;
			unsigned long long int next;

		private:
		};
	}
}
#endif